<div ng-controller="StoredistributionCtrl" ng-init="grouplistAction()">
    <ul class="sui-breadcrumb">
        <li>{{'分账类型'|translate}}</li>
        <li>列表
            <a href="#/storedistribution/groupadd" class="sui-btn btn-primary">+{{'add_new'|translate}}</a>
        </li>

        <span class="sui-form sui-form pull-right">
            <span>
            </span>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'分组名称'|translate}}</th>
                <!-- <th>{{'分组类型'|translate}}</th> -->
                <th>{{'分账类型'|translate}}</th>
                <th>{{'备注'|translate}}</th>
                <th>{{'created_at'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in groupList">
                <td>{{list.fz_group_id}}</td>
                <td>{{list.name}}</td>
                <!-- <td>
                    <fz-group-type ng-model="list.type" stype="1"></fz-group-type>
                </td> -->
                <td>
                    <span ng-show="list.type == 1">
                        <b style="color: #f00;">大黄蜂专用，</b>
                    </span>
                    <span ng-show="list.type == 2">
                        <b style="color: #f00;">当前店铺分账，</b>
                    </span>
                    <span ng-show="list.ptype == 1">
                        每单按照比例分账，比例为<b style="color:#f00;">{{list.proportion}}</b>%
                    </span>
                    <span ng-show="list.ptype == 2">
                        每单按照固定金额分账，金额为<b style="color:#f00;">{{list.orderp}}</b>元                       
                    </span>
                </td>
                <td>{{list.remark}}</td>
                <td>{{list.created_time}}</td>
                <td>
                    <a ng-show="list.is_admin == 1" href="#/storedistribution/groupadd?fz_group_id={{list.fz_group_id}}" class="sui-btn btn-primary">{{'edit'|translate}}</a>
                    <a ng-show="list.is_admin == 1" href="#/storedistribution/item?fz_group_id={{list.fz_group_id}}" class="sui-btn btn-primary">{{'设置分账比例'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="pageSize" total="storeTotal" get-data="getstoreList(pageNo)"></pager>
</div>